/*应用程序“开饭啦”的主模块*/
angular.module(
  'kaifanla',
  ['ngRoute','ngAnimate','kaifanlaController','kaifanlaFilter','kaifanlaService']
)
.config(function($routeProvider){
    $routeProvider
      .when('/start',{
        templateUrl: 'tpl/start.html',
        controller: 'startCtrl'
      })
      .when('/main',{
        templateUrl: 'tpl/main.html',
        controller: 'mainCtrl'
      })
      .when('/detail/:dno',{
        templateUrl: 'tpl/detail.html',
        controller: 'detailCtrl'
      })
      .when('/order/:dno',{
        templateUrl: 'tpl/order.html',
        controller: 'orderCtrl'
      })
      .when('/myorder',{
        templateUrl: 'tpl/myorder.html',
        controller: 'myorderCtrl'
      })
      .otherwise({
        redirectTo: '/start'
      })
  })